/*
 * $Id$
 */

package com.huiquan.sphinx;

import java.util.ArrayList;

/**
 * Matched document information, as in search result.
 */
public class SphinxMatch {
	/** Matched document ID. */
	public long docId;

	/** Matched document weight. */
	public int weight;

	public long getDocId() {
		return docId;
	}

	public void setDocId(long docId) {
		this.docId = docId;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	@SuppressWarnings("rawtypes")
	public ArrayList getAttrValues() {
		return attrValues;
	}

	@SuppressWarnings("rawtypes")
	public void setAttrValues(ArrayList attrValues) {
		this.attrValues = attrValues;
	}

	/** Matched document attribute values. */
	@SuppressWarnings("rawtypes")
	public ArrayList attrValues;

	/** Trivial constructor. */
	@SuppressWarnings("rawtypes")
	public SphinxMatch(long docId, int weight) {
		this.docId = docId;
		this.weight = weight;
		this.attrValues = new ArrayList();
	}
}

/*
 * $Id$
 */
